/*
 * @Author: your name
 * @Date: 2021-04-19 19:49:18
 * @LastEditTime: 2021-04-20 20:57:03
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \新建文件夹\the-third-group\app\src\mock\production\data.js
 */
import Mock from 'mockjs'

const proClassify = Mock.mock({
    'list': [{
        type: '理疗仪器',
        typeId: '@id',
        typeImg: '@image(50x50, @color)',
        count: '@integer(1000,10000)',
        status: '@boolean',
        'children|6': [{
            proname: '@ctitle(3,5)',
            proId: '@id',
            proImg: '@image(50x50, @color)',
            price: '@integer(20,1000)',
            state: '@boolean',
            introduce: '@cword(20)',
            server: '@cword(20)' 
        }]
    }, {
        type: '健康保险',
        typeId: '@id',
        typeImg: '@image(50x50, @color)',
        count: '@integer(1000,10000)',
        status: '@boolean',
        'children|5': [{
            proname: '@ctitle(3,5)',
            proId: '@id',
            proImg: '@image(50x50, @color)',
            price: '@integer(20,1000)',
            state: '@boolean',
            introduce: '@cword(20)',
            server: '@cword(20)' 
        }]
    }, {
        type: '婴幼用品',
        typeId: '@id',
        typeImg: '@image(50x50, @color)',
        count: '@integer(1000,10000)',
        status: '@boolean',
        'children|5': [{
            proname: '@ctitle(3,5)',
            proId: '@id',
            proImg: '@image(50x50, @color)',
            price: '@integer(20,1000)',
            state: '@boolean',
            introduce: '@cword(20)',
            server: '@cword(20)' 
        }]
    }]
})

Mock.mock('/api/proClassify', () => {
    return {
        code: 0,
        msg: '查询成功',
        data: proClassify.list
    }
})